<?php 
session_start();
require_once '../header.php';
function __autoload($className)
	{
    	require_once('../class/' . $className . '.class.php');
	}
session::need_manage();	
unset($_SESSION["cc"]);
?>
<form name="submitcctodb" method="post" action="addcc.php?step=2" />
<table width="100%">
<tr class="classmenu">
<td colspan="16">
Add CC Field
</td>
</tr>
<tr>
<td colspan=16 >
<input name="submit" type="submit" value="submit" />
</td>
</tr>
<tr class="classtopmenu">
<td>
Order
</td>
<td>
Stick
</td>
<td>
First Name
</td>
<td>
Last Name
</td>
<td>
CC Numbers
</td>
<td>
Ex Month
</td>
<td>
Ex Year
</td>
<td>
Cvv
</td>
<td>
Address
</td>
<td>
City
</td>
<td>
State
</td>
<td>
Zip
</td>
<td>
Country
</td>
<td>
Dob
</td>
<td>SSN
</td>
<td>
Price
</td>
<td>
Other
</td>

</tr>

<?php
$Insert=$_SESSION["insert"];
$i=1;
foreach($Insert as $ShowCC)
{
	$cc=$ShowCC['ccnumber'];
	$exm=$ShowCC['exmonth'];
	$exy=$ShowCC['exyear'];
	$ccv=$ShowCC['ccv2'];
	$CCnumHash=hash::hashccv($cc, $exm, $exy, $ccv);
	
	?>
<tr>
<td>
<?php echo $i;?>
</td>
<td>
<input name="cc[]" type="checkbox" value="<?php echo $ShowCC['ccnumber'];?>" />
</td>
<td>
<?php echo $ShowCC['firstname'];?>
</td>
<td>
<?php echo $ShowCC['lastname'];?>
</td>
<td>
<?php 

echo $ShowCC['ccnumber'];
$ShowCC['ccnumber']=$CCnumHash;
?>
</td>
<td>
<?php echo $ShowCC['exmonth'];?>
</td>
<td>
<?php echo $ShowCC['exyear'];?>
</td>
<td>
<?php echo $ShowCC['ccv2'];?>
</td>
<td>
<?php echo $ShowCC['address'];?>
</td>
<td>
<?php echo $ShowCC['city'];?>
</td>
<td>
<?php echo $ShowCC['state'];?>
</td>
<td>
<?php echo $ShowCC['zip'];?>
</td>
<td>
<?php echo $ShowCC['country'];?>
</td>
<td>
<?php echo $ShowCC['dob'];?>
</td>
<td>
<?php echo $ShowCC['ssn'];?>
</td>
<td>
<?php echo $ShowCC['price'];?>
</td>
<td>
<?php echo $ShowCC['others'];?>
</td>
</tr>
	<?php
	$_SESSION["cc"][$cc]=$ShowCC;
	$i++; 
}

?>
</table>
</form>